package com.nbgroup.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.aspectj.weaver.patterns.Declare;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class Activity implements Serializable {
//主键id
    private Long id;
//活动编号
    private String code;
//活动名称
    private String name;
//渠道来源
    private String channel;
//活动简介
    private String info;
//活动类型
    private String type;
//课程折扣
    private BigDecimal discount;
//课程代金卷
    private Integer vouchers;
//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
//修改时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
//开始时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime beginTime;
//结束时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;
//创建人
    private String createBy;
//修改人
    private String updateBy;
}
